import { createApp } from "vue";
// import App from "./01_render函数的使用/01_render的基本使用.vue";
// import App from "./01_render函数的使用/02_render函数实现计数器.vue";
// import App from "./01_render函数的使用/03_setup函数实现计数器.vue";
// import App from "./01_render函数的使用/App.vue";

// import App from "./02_jsx的使用/App.vue";

// import App from "./03_自定义指令/01_默认的实现.vue";
// import App from "./03_自定义指令/02_局部自定义指令.vue";
// import App from "./03_自定义指令/03_生命周期和参数-修饰符.vue";
// import App from "./03_自定义指令/App.vue";

// import App from "./04_teleport内置组件/App.vue";
import App from "./05_nexttick/App.vue";

import registerDirectives from "./direactives";
import pluginObject from "./plugins/plugins_object";
import pluginFunction from "./plugins/plug_function";

const app = createApp(App);

registerDirectives(app);
app.use(pluginObject);
app.use(pluginFunction);

app.directive("focus", {
  mounted(el, bindings, vnode, preVnode) {
    el.focus();
  },
});

app.mount("#app");
